package com.wetao.lib_common.greendao.model;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.NotNull;

@Entity
public class QuestionGrid {
    @Id(autoincrement = true)
    private Long id;
    @NotNull
    private Integer questionId;
    private Integer startX;
    private Integer endX;
    private Integer startY;
    private Integer endY;

    private Integer questionNum; //题号，自己计算
    private boolean isWrite;  //自己计算

    @NotNull
    private Long pagePictureId;

    @Generated(hash = 1425462603)
    public QuestionGrid(Long id, @NotNull Integer questionId, Integer startX,
            Integer endX, Integer startY, Integer endY, Integer questionNum,
            boolean isWrite, @NotNull Long pagePictureId) {
        this.id = id;
        this.questionId = questionId;
        this.startX = startX;
        this.endX = endX;
        this.startY = startY;
        this.endY = endY;
        this.questionNum = questionNum;
        this.isWrite = isWrite;
        this.pagePictureId = pagePictureId;
    }

    @Generated(hash = 969888366)
    public QuestionGrid() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getQuestionId() {
        return this.questionId;
    }

    public void setQuestionId(Integer questionId) {
        this.questionId = questionId;
    }

    public Integer getStartX() {
        return this.startX;
    }

    public void setStartX(Integer startX) {
        this.startX = startX;
    }

    public Integer getEndX() {
        return this.endX;
    }

    public void setEndX(Integer endX) {
        this.endX = endX;
    }

    public Integer getStartY() {
        return this.startY;
    }

    public void setStartY(Integer startY) {
        this.startY = startY;
    }

    public Integer getEndY() {
        return this.endY;
    }

    public void setEndY(Integer endY) {
        this.endY = endY;
    }

    public Integer getQuestionNum() {
        return this.questionNum;
    }

    public void setQuestionNum(Integer questionNum) {
        this.questionNum = questionNum;
    }

    public boolean getIsWrite() {
        return this.isWrite;
    }

    public void setIsWrite(boolean isWrite) {
        this.isWrite = isWrite;
    }

    public Long getPagePictureId() {
        return this.pagePictureId;
    }

    public void setPagePictureId(Long pagePictureId) {
        this.pagePictureId = pagePictureId;
    }



}
